﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 拿到了随机值后根据具体坐标生成具体坐标
/// </summary>
public class MapFactory
{

    public static void GetMapData(PositionData data)
    {
        List<float> seeds = RandomCenter.CreateRandomValues(data);


        Random.InitState((int)seeds[0]);
        int random = Random.Range(0,16);

        List<int> distances = new List<int>();

        for (int i = 0; i < random; i++)
        {
            if (distances.Count==0)
            {
                distances.Add((int)Random.Range(GlobalVariable.CommonXxMinDistance, GlobalVariable.CommonXxMinDistance*2));
            }
            else
            {
                distances.Add((int)Random.Range(distances[distances.Count - 1]*2, distances[distances.Count - 1] * 2+ GlobalVariable.CommonXxMinDistance));
            }

        }

        

    }

}
